﻿namespace BlueHarvestSnippetGenerator.Snippets.SnippetControl
{
    public class SnipGen
    {

        private readonly SnippetBuilder _snippetBuilder;

        public string SnippetCode { get; private set; }

        public string SnippetTitle { get; private set; }

        public string SnippetDescription { get; private set; }

        public string SnippetShortcut { get; private set; }

        public SnipGen()
        {
            _snippetBuilder = new SnippetBuilder();
            var temp = _snippetBuilder.CreateSnippet();
            foreach (var snippet in temp)
            {
                SnippetCode = snippet.CodeSample;
                SnippetTitle = snippet.Title;
                SnippetDescription = snippet.Description;
                SnippetShortcut = snippet.Shortcut;
            }
        }

    }
}
